Systems and methods for repurposing virtual machines

ABSTRACT

Software, firmware, and systems repurpose existing virtual machines. After a virtual machine is created, the system stores data associated with the virtual machine to permit its later repurposing. Repurposing data includes data associated with the virtual machine when the virtual machine is in a generic state from which it may be configured for use by two or more users/applications. When the system receives a request to create a new virtual machine, rather than create a brand new virtual machine, the system repurposes an existing virtual machine. The system identifies a virtual machine to repurpose, deletes data associated with the identified virtual machine, and loads a saved copy of repurposing data. The system may then load user data or otherwise customize the database and virtual machine.

CROSS-REFERENCE TO RELATED APPLICATION(S)

The present application is a continuation of U.S. patent application Ser. No. 13/765,389, filed Feb. 12, 2013, now U.S. Pat. No. 9,378,035 which claims priority to and the benefit of U.S. Provisional Application No. 61/746,823, filed Dec. 28, 2012, each of which is hereby incorporated herein by reference in its entirety.

BACKGROUND

Comprehensive and full-featured data management systems may be prohibitively expensive, require an operator with specialized expertise, and consume substantial processing and data storage resources. However, full-featured data management systems can also offer substantial benefits to an organization, including, top-down, policy-driven data management; data replication and protection; cloud storage integration; storage resource management, analysis, optimization, and reporting; data archiving, deduplication, compression and encryption; electronic discovery (E-discovery), privacy violation, retention life cycle, and compliance management; backup and recovery; content indexing; data classification; enterprise and collaborative data mining and search; migration from legacy data storage solutions; virtual server protection; disaster recovery; access control and security; and many others.

One example of a data management system that provides such features is the Simpana storage management system by CommVault Systems of Oceanport, N.J. The Simpana system leverages a modular storage management architecture that may include, among other things, storage manager components, client or data agent components, and media agent components as further described in U.S. Pat. No. 7,246,207, filed Apr. 5, 2004, entitled SYSTEM AND METHOD FOR DYNAMICALLY PERFORMING STORAGE OPERATIONS IN A COMPUTER NETWORK. The Simpana system also may be hierarchically configured into backup cells to store and retrieve backup copies of electronic data as further described in U.S. Pat. No. 7,395,282, filed Jul. 15, 1999, entitled HIERARCHICAL BACKUP AND RETRIEVAL SYSTEM.

To avoid the overhead of a comprehensive data management system, an organization may initially choose to forego these advantages and instead deploy limited-feature data management software applications that provide piecemeal feature coverage. For example, an organization may choose to deploy a first limited-feature backup application that performs data backups of a limited number of client computers as well as a second limited-feature archive application that archives data. However, as an organization's data management needs grow and diversify, the organization may struggle to make a smooth transition from using a piecemeal patchwork of limited-feature software applications to using a comprehensive and full-featured data management system that provides an overarching data management framework. For example, a comprehensive and full-featured data management system may be unable to integrate the data and/or metadata previously generated by each limited-feature application used by the organization.

As a first specific example, an organization may initially use a limited-feature module to manage and provision virtual machines (VM), but later wish to receive additional features related to the management of virtual machines. In general, virtualization refers to the simultaneous hosting of one or more operating systems on a physical computer. Such virtual operating systems and their associated virtual resources are called virtual machines. Virtualization software sits between the virtual machines and the hardware of the physical computer. One example of virtualization software is ESX Server, by VMware, Inc. of Palo Alto, Calif. Other examples include Microsoft Virtual Server and Microsoft Windows Server Hyper-V, both by Microsoft Corporation of Redmond, Wash., and Sun xVM by Oracle America Inc. of Santa Clara, Calif.

Virtualization software provides to each virtual operating system virtual resources, such as a virtual processor, virtual memory, a virtual network device, and a virtual disk. Each virtual machine has one or more virtual disks. Virtualization software typically stores the data of virtual disks in files on the file system of the physical computer, called virtual machine disk files (in the case of VMware virtual servers) or virtual hard disk image files (in the case of Microsoft virtual servers). For example, VMware's ESX Server provides the Virtual Machine File System (VMFS) for the storage of virtual machine disk files. A virtual machine reads data from and writes data to its virtual disk much the same way that an actual physical machine reads data from and writes data to an actual disk.

One advantage of virtualization is that relative to physical machines, virtual machines can be easily created. For example, organizations often provide web-based or other interfaces to virtualization software that allow users to easily create virtual machines. Often-times, however, it takes an extended period of time for a system to construct a virtual machine after it has been instructed to do so by a user. Additionally, existing virtual machines, even unused ones, consume resources (e.g., memory, storage space, processor cycles) of the physical computer on which the virtualization software operates. In certain cases, the resources of the physical computer may be fully or nearly fully utilized by the virtual machines that the physical computer hosts. In such cases, users may be unable to create new virtual machines until the physical computer becomes less utilized, which can occur if virtual machines are shut down or deleted.

As other examples, an organization may initially use a limited-feature module to (a) provide private search capabilities, (b) perform backups and other secondary storage operations for a limited number of client computers, (c) create content stores, or (d) perform other data management operations. However, the organization may later wish to receive additional, value-added features related to these tasks.

The need exists for systems and methods that overcome the above problems, as well as systems and methods that provide additional benefits. Overall, the examples herein of some prior or related systems and methods and their associated limitations are intended to be illustrative and not exclusive. Other limitations of existing or prior systems and methods will become apparent to those of skill in the art upon reading the following detailed description.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram illustrating an environment in which a system for virtual machine life cycle management operates.

FIG. 2 is a block diagram illustrating details of a computing system that can perform virtual machine life cycle management, including detecting and archiving idle virtual machines and repurposing virtual machines.

FIG. 3 is a flow diagram illustrating a virtual machine life cycle management process that includes detecting and archiving idle virtual machines and is implemented by the virtual machine life cycle management system.

FIG. 4 is a flow diagram illustrating a process implemented by the virtual machine life cycle management system in connection with restoring an archived virtual machine.

FIG. 5A is a block diagram illustrating a data storage system in which aspects of the technology may be performed.

FIG. 5B is a block diagram illustrating a data storage system in which aspects of the technology may be performed.

FIG. 6 is a flow diagram illustrating a process for docking a limited-feature virtual machine life cycle management module with a full-featured data management system.

FIG. 7 is a flow diagram illustrating a process for creating a virtual machine that can be repurposed.

FIG. 8 is a flow diagram illustrating a process for repurposing a virtual machine.

FIG. 9 is a flow diagram illustrating a process for identifying a virtual machine to repurpose.

DETAILED DESCRIPTION

The headings provided herein are for convenience only and do not necessarily affect the scope or meaning of the disclosure.

Overview

A software, firmware, and/or hardware system for VM life cycle management is disclosed (the “virtual machine (VM) life cycle management system”). The VM life cycle management system provides management for numerous phases in the life cycle of a virtual machine, including creating the virtual machine initially; providing ongoing policy-based management and backup protection of the virtual machine; detecting, shutting down and/or archiving the virtual machine when it has been idle for a period of time; restoring the virtual machine after it has been archived; and repurposing virtual machines.

After a virtual machine is created, the system may copy and store repurposing data associated with the virtual machine. Repurposing data includes data associated with the virtual machine when the virtual machine is in a generic state from which it may be configured for either of two or more users. For example, repurposing data may be a copy of a database that stores for the virtual machine all metadata, media management, policies, reporting, and licensing information, including headers, pointers, and file listings useful in restoring data files. For example, the database may be a CommServe database as it exists immediately after a virtual machine is created, prior to merging user data into the database. When the VM life cycle management system receives a request to create a new virtual machine, rather than create a brand new virtual machine, the system repurposes an existing virtual machine. The VM life cycle management system identifies a virtual machine to repurpose, deletes data associated with the identified virtual machine (e.g., the CommServe database), and loads a saved copy of repurposing data. The system may then load user data or otherwise customize the database and virtual machine for a new user.

The VM life cycle management system may select a virtual machine to repurpose based on a variety of criteria, including a machine's availability, status, and specifications. For example, the repurposing system may create a list of virtual machines that are running on an ESX server, and upon a request by a user for a virtual machine, the repurposing system may identify an available and presently unused virtual machine to repurpose

In repurposing a virtual machine, the VM life cycle management system identifies repurposing data for the virtual machine. The system deletes data then presently associated with the virtual machine that corresponds to the repurposing data. The system then loads the repurposing data. For example, the system may have saved a copy of a CommServe database after a virtual machine was freshly created and added to a domain. When later repurposing that virtual machine after a first user has already used it, the repurposing system deletes the CommServe database of the virtual machine and loads the saved copy, thereby deleting any modifications that may have been made by the first user. The resulting virtual machine may be easily customized for a second user by merging user data and it will already be on the domain and in a “generic” state, ready to be modified by the second user.

Virtual machines are hosted by virtualization software that operates on computing systems. Such virtualization software may be referred to as a virtual machine host. The VM life cycle management system monitors virtual machines to detect idle virtual machines. For example, the VM life cycle management system may query virtual machine hosts or another server that manages virtual machines. The VM life cycle management system may select a virtual machine to repurpose based at least in part the virtual machine being idle.

When the VM life cycle management system determines that a virtual machine has been idle for a first period of time, the VM life cycle management system shuts down the virtual machine. After it has been shut down, the virtual machine no longer utilizes memory and processor cycles of the computing system hosting the virtual machine. Accordingly, the computing system can utilize such resources for other purposes. Additionally, the system and methods described herein that relate to shutting down idle virtual machines may also be applied to idle physical machines so that the system shuts down and powers off physical machines that are determined to be idle for some predefined period of time. By shutting down idle machines, either virtual or physical, the life cycle management system may assist in meeting “green energy” certifications, standards, or other benchmarks, such as being a Green Energy Compliant System. In some implementations, the VM life cycle management system repurposes a virtual machine that has been shut down after it is powered on.

After the virtual machine has been shut down for a second period of time, the VM life cycle management system archives the virtual machine file associated with the virtual machine by copying the virtual machine file to a storage device and replacing the virtual machine file with a stub. The stub points or refers to the location of the copied virtual machine file. After the virtual machine file has been archived, the virtual machine no longer utilizes as much storage space of the computing system as the virtual machine utilized before the archive process.

The VM life cycle management system may replace an icon normally associated with the virtual machine with a new icon corresponding to archived virtual machines, thereby providing a visual indication that the virtual machine has been archived. If the VM life cycle management system detects that a user selects the archived virtual machine, the VM life cycle management system can provide an option to restore and restart the virtual machine. For example, upon detecting a right-click of the new icon, the VM life cycle management system can provide a selectable right-click option to restore and restart the virtual machine. If the VM life cycle management system detects that the option is selected, the VM life cycle management system can retrieve and restore the archived virtual machine file to the computing system, and then start the virtual machine. In some implementations, the VM life cycle management system retrieves and restores an archived virtual machine for repurposing.

The application provides below a first example of how a limited-feature virtual machine (VM) life cycle management module, which provides only a subset of the features of the VM life cycle management system, may be docked with a full-featured data management system in order to provide additional virtual machine management features.

The initial discussion of the VM life cycle management system provides a framework for understanding the processes described herein for repurposing virtual machines. Indeed, FIGS. 7-9, which follow an initial discussion of the VM life cycle management system, provide examples of processes performed by the VM life cycle management system for preparing a virtual machine for repurposing, selecting a virtual machine for repurposing, and repurposing a virtual machine.

Various examples of the invention will now be described. The following description provides specific details for a thorough understanding and enabling description of these examples. One skilled in the relevant art will understand, however, that the invention may be practiced without many of these details. Likewise, one skilled in the relevant art will also understand that the invention may include many other obvious features not described in detail herein. Additionally, some well-known structures or functions may not be shown or described in detail below, so as to avoid unnecessarily obscuring the relevant description.

The terminology used below is to be interpreted in its broadest reasonable manner, even though it is being used in conjunction with a detailed description of certain specific examples of the invention. Indeed, certain terms may even be emphasized below; however, any terminology intended to be interpreted in any restricted manner will be overtly and specifically defined as such in this Detailed Description section.

Illustrative Environment

FIG. 1 is a block diagram illustrating an environment 100 in which the repurposing system operates. The environment 100 includes multiple virtual machine hosts 105 operating or executing on physical computing systems, a virtual machine manager 150, a virtual machine proxy 145, a secondary storage computing device 165 (alternatively referred to as a “media agent”) and one or more storage devices 115. The virtual machine hosts 105, the virtual machine manager 150, the virtual machine proxy 145, and the secondary storage computing device 165 are connected to each other via a network, which may be a LAN, a WAN, the public Internet, some other type of network, or some combination of the above.

The virtual machine host 105 (e.g., a VMware ESX server, a Microsoft Virtual Server, a Microsoft Windows Server Hyper-V host, or any other type of virtualization software) hosts one or more virtual machines 110 (e.g., VMware virtual machines, Microsoft virtual machines, or any other type of virtual machine). Each virtual machine 110 has its own operating system 120 and one or more applications 116 executing on the operating system or loaded on the operating system. The operating systems 120 may be any type of operating system 120 (e.g., Microsoft Windows, Linux operating systems, Sun Solaris operating systems, UNIX operating systems, or any other type of operating system) that can be hosted by the virtual machine host 105. The applications 116 may be any applications (e.g., database applications, file server applications mail server applications, web server applications, transaction processing applications, or any other type of application) that may run on the operating systems 120.

Each virtual machine host 105 has a primary storage data store 135 that stores the virtual disks 140 of the virtual machines 110. Virtual disk 140 a is used by virtual machine 110 a, and virtual disk 140 b is used by virtual machine 110 b. Although each virtual machine 110 is shown with only one virtual disk 140, each virtual machine 110 may have more than one virtual disk 140 in the primary storage data store 135. A virtual disk 140 corresponds to one or more virtual machine disk files (e.g., one or more *.vmdk, *.vhd files, or any other type of file) on the primary storage data store 135. The primary storage data store 135 stores a primary copy of the data of the virtual machines 110. Additionally or alternatively, the virtual disks 140 may be stored by other storage devices in the environment 100 (e.g., on storage devices in a Storage Area Network (SAN)).

The virtual machine manager 150 (e.g., a VMware Virtual Center server, a Microsoft System Center Virtual Machine Manager, or any other virtual machine manager software) manages or facilitates management of the virtual machines 110 and/or the virtual machine hosts 105. The virtual machine manager 150 and the virtual machine hosts 105 may each include an Application Programming Interface (API) component to expose or provide various types of APIs, such as an API for accessing and manipulating virtual disks 140, and an API for performing other functions related to management of virtual machines 110.

The virtual machine proxy 145 includes a data agent 195 configured to perform storage operations on data of virtual machines 110. The data agent 195 is configured to access the primary storage data stores 135. The secondary storage computing device 165 can initiate storage operations on the data of the virtual machines 110 and assist in the transfer of virtual machine data by the virtual machine proxy 145 to the storage device 115. The secondary storage computing device 165 (or the virtual machine proxy 145, or any other component described herein) may perform functions such as encrypting, compressing, single or variable instancing, deduplicating, and/or content indexing data that is transferred to the storage device 115.

Illustrative System

FIG. 2 is a block diagram illustrating in more detail a computing system 200 that can perform the virtual machine life cycle management functionality described herein. The computing system 200, or VM life cycle management system, includes a memory 214. The memory 214 includes software 216 incorporating components 218 and data 220 typically used by the VM life cycle management system 200. The data 220 includes VM creation data 221, idleness data 222, archiving data 224, and restore data 226. The VM creation data 221 can include policies, rules or criteria for creating new virtual machines. The idleness data 222 can include rules or criteria for detecting idle virtual machines 110 (e.g., virtual machines 110 that are not utilized or are substantially unused for a predetermined period of time). The archiving data 224 can include rules or criteria for determining if and when virtual machine files are to be archived. The restore data 226 can include data for restoring archived virtual machine files, including policies, rules or criteria for restoring archived virtual machines.

The components 218 may include subcomponents, modules, or other logical entities that assist with or enable the performance of some or all of the functionality. For example, the components 218 include a virtual machine creation component 215 to fulfill requests to create new virtual machines using the VM creation data 221. The virtual machine creation component may for example, identify available resources and apply policies during virtual machine creation. The components 218 also include an idleness determination component 230 that uses the idleness data 222 to determine that a virtual machine 110 has been idle. The components 218 also include an archiving component 232 that archives data associated with virtual machines 110 using the archiving data 224. The components 218 also include a restore component 234 that uses the restore data 226 to restore data associated with virtual machines 110. The components 218 also include a repurposing data capture component 236 that copies data associated with virtual machines 110 after the virtual machines have been created. For example, the repurposing data capture component 236 may store a copy of a console database associated with a virtual machine after the virtual machine is created. The components 218 also include a virtual machine repurposing component 238 that identifies and repurposes an existing virtual machine based on a received request for a virtual machine. The components also include a user interface component 252 that provides a user interface for managing virtual machines 110, a management component 254 that provides virtual machine 110 management functionality, and an API component 256 that provides functions that enable programmatic interaction with the virtual machine manager 150, the virtual machines 110, and/or the virtual machine hosts 105.

While items 218 and 220 are illustrated as stored in memory 214, those skilled in the art will appreciate that these items, or portions of them, may be transferred between memory 214 and a persistent storage device 206 (for example, a magnetic hard drive, a tape of a tape library, etc.) for purposes of memory management, data integrity, and/or other purposes.

The computing system 200 further includes one or more central processing units (CPU) 202 for executing software 216, and a computer-readable media drive 204 for reading information or installing software 216 from tangible computer-readable storage media, such as a floppy disk, a CD-ROM, a DVD, a USB flash drive, and/or other tangible computer-readable storage media. The computing system 200 also includes one or more of the following: a network connection device 208 for connecting to a network, an information input device 210 (for example, a mouse, a keyboard, etc.), and an information output device 212 (for example, a display).

The computing system 200 can be implemented by or in any of the components illustrated in FIG. 1, such as by or in the virtual machine hosts 105, the virtual machine manager 150, the virtual machine proxy 145, or the secondary storage computing device 165. In some examples, some or all of the software 216, components 218, and data 220 of the computing system may be implemented as a plug-in to third-party virtualization software, such as the VMware ESX Server or VMware vCenter software. In some examples, the plug-in may be downloaded to the various virtual machine hosts 105, e.g., from a server running VMware vCenter software and/or system components such as the virtual machine manager 150. The functionality of the computing system 200 may be performed by any or all of such components. For example, the virtual machine manager 150 may include the user interface component 252 and the management component 254 to provide a user interface for managing virtual machines 110. The secondary storage computing device 165 may include the archiving component 232 and the restore component 234 to archive and restore virtual machine data. Accordingly, the components 218 are not limited to being implemented by or in a single computing device.

Illustrative Virtual Machine Life Cycle Management Process

FIG. 3 is a flow diagram illustrating a virtual machine life cycle management process 300, including detecting and archiving idle virtual machines 110, implemented by the VM life cycle management system 200. The process 300 begins at step 301, where the VM life cycle management system 200 receives a request to create a virtual machine 110. For example, the VM life cycle management system 200 may provide a graphical user interface that permits a user to indicate the specifications for a new virtual machine 110, including for example the operating system, application programs, and virtual resources needed, such as virtual processing power, virtual memory, virtual network devices, and virtual disk space. At step 302, the VM life cycle management system 200 identifies resources that are available for creating new virtual machines. For example, the VM life cycle management system 200 may access stored data that identifies which virtual machine hosts 105 are on the network and which primary storage data stores 135 are available to store virtual disks 140. The VM life cycle management system 200 may also access data regarding the virtual resources or other resources that are already being consumed by the existing virtual machines running on each of the virtual machine hosts 105. As another example, the VM life cycle management system may access stored data regarding the total hosting capacity or configuration of each virtual machine host 105, and/or the capacity or configuration of the various primary storage data stores 135. The VM life cycle management system may determine some or all of the resource availability information dynamically by polling resources, or by crawling or spidering the network. In some examples, the system may use a combination of static stored data and dynamic techniques to determine resource availability.

At step 303, the VM life cycle management system creates a new virtual machine 110 and associated virtual disks 140 in accordance with applicable virtual machine policies, e.g., using APIs provided by the API component 256. The applicable virtual machine policies may require that the VM life cycle management system select a virtual machine host 105 for the new virtual machine in order to facilitate load distribution. For example, the virtual machine policy may dictate that a new virtual machine should be hosted by the virtual machine host 105 in the network that is currently providing the lowest amount of virtual resources to other virtual machines (e.g., either as a percentage of its total resources and/or in absolute terms). As another example, the virtual machine policy may select the virtual machine host 105 for the new virtual machine using a round-robin technique. Similarly, the policy may specify that the primary storage data store 135 for storing the new virtual disks 140 should be selected in order to facilitate load distribution.

Once the virtual machine 110 has been created, at step 303, the VM life cycle management system 200 may also manage various backup and other secondary storage operations that create secondary copies of the virtual machine 110 and its associated virtual disks 140, such as snapshot copies and backup copies. Also, at step 303, the VM life cycle management system may provide user interfaces that permit users to manage aspects of the virtual machine 110, including, for example, altering its specification, generating reports regarding its performance and use of virtual resources, and other management tasks.

At step 305 the VM life cycle management system 200 discovers virtual machines 110 in the network, including the virtual machine 110 created at step 303. For example, the VM life cycle management system 200 may use APIs provided by the API component 256 to discover virtual machines 110. As another example, the VM life cycle management system 200 may query a virtual machine host 105 or a virtual machine manager 150 in order to discover virtual machines 110. Additionally or alternatively, the VM life cycle management system 200 may analyze processes and ascertain that the processes match a particular signature associated with virtual machines 110.

As another example, to discover virtual machines 110 the VM life cycle management system 200 may include logic for crawling or spidering the network. The VM life cycle management system 200 may utilize route tables or other data structures and crawl or spider various computing systems that could potentially host virtual machines 110 to determine whether or not the computing systems are hosting virtual machines 110. Accordingly, instead of relying on a static input (e.g., a name of a virtual machine host 105 or the virtual machine manager 150) to discover virtual machines 110, the VM life cycle management system 200 could dynamically discover virtual machines 110 using the dynamic techniques described herein. Additionally or alternatively, the VM life cycle management system 200 can use a combination of static and dynamic techniques to discover virtual machines 110. More details as to the discovery, detection, and/or identification of virtual machines 110 are described in commonly-assigned co-pending U.S. Patent Application Publication Number 2010/0070725, the entirety of which is incorporated by reference herein.

As another example, the VM life cycle management system 200 can create and maintain a data structure containing entries for virtual machines 110, as well as an indication of whether or not each virtual machine 110 is active and the last time the virtual machine 110 was found to be active. The VM life cycle management system 200 can access the data structure and use the entries as a starting point for discovering virtual machines 110.

At step 310, the VM life cycle management system 200 determines that the created virtual machine 110 has been idle for at least a first predefined period of time. For example, to determine that a virtual machine 110 has been idle, the VM life cycle management system 200 may intercept alerts transmitted with respect to the virtual machine 110, analyze the content of the alerts, and look for specific content in the alerts. If the VM life cycle management system 200 finds that the alerts contain the specific content, the VM life cycle management system 200 may determine that the virtual machine 110 associated with the alerts has been idle for at least the first predetermined period of time. As another example, the VM life cycle management system 200 may call an API (e.g., an API of the virtual machine manager 150 or of a virtual machine host 105) in order to determine that a virtual machine 110 has been idle for a period of time.

As another example, the VM life cycle management system 200 may determine that all or substantially all of the application-level processes of the virtual machine 110 have been idle for at least the first predefined period of time. There may be operating system-level processes that have been running, but the VM life cycle management system 200 may ignore such processes to focus on application-level processes. The VM life cycle management system 200 may look for activity above and beyond operating system-level activity, such as looking to see if any applications 116 are active. To determine such activity, the VM life cycle management system 200 may call APIs (e.g., an API of a virtual machine operating system 120) to determine the level or extent of idleness of applications 116 running on the virtual machine 110. Additionally or alternatively, the VM life cycle management system may monitor application-level events, such as keyboard and mouse events. Such events may show that a user has logged onto a virtual machine 110 and has been utilizing the virtual machine 110. As another example, the VM life cycle management system 200 may monitor user and/or process activity on the virtual machine 110, such as by monitoring metadata that may indicate whether certain user-level processes are active.

After determining that the virtual machine 110 has been idle for at least the first predefined period of time, at step 315 the VM life cycle management system 200 shuts down the idle virtual machine 110. For example, the VM life cycle management system 200 may call an API (e.g., an API of the virtual machine manager 150 or of a virtual machine host 105) to cause the virtual machine 110 to shut down. As another example, the VM life cycle management system 200 may issue commands to the virtual machine host 105 or the virtual machine manager 150 to cause the virtual machine 110 to shut down. In this context, shut down can mean that the virtual machine 110 is completely shut down (e.g., powered off) or is only partially shut down (e.g., in a standby state or hibernating).

After shutting down the virtual machine 110, at step 320 the VM life cycle management system 200 starts a timer for a second predefined period of time. The VM life cycle management system 200 may require the virtual machine 110 to be shut down for the entirety of the second predefined period of time, or may simply require that the virtual machine 110 be shut down at the conclusion of the second predefined period of time. The VM life cycle management system 200 may use default values for the first and second predefined periods of time. For example, the VM life cycle management system 200 may set the first predefined period of time to be equal to 90 days, and the second predefined period of time to be equal to 30 days. Additionally or alternatively, the VM life cycle management system 200 can allow a user to configure the first and second predefined periods of time.

After the timer expires, the VM life cycle management system 200 archives the virtual machine file associated with the virtual machine 110. In this context, a virtual machine file can include any file or data object utilized by or associated with the virtual machine 110 (e.g., the *.vmdk utilized by VMware virtual servers, the *.vhd files utilized by Microsoft virtual servers, or any other type of file or data object).

The VM life cycle management system 200 archives the virtual machine file by copying the virtual machine file to the storage device 116. The VM life cycle management system 200 may preserve the state of the virtual machine file, so that the VM life cycle management system 200 can restart the virtual machine 110 at that same point upon restoration. The VM life cycle management system 200 may also perform other operations upon the virtual machine file, such as compressing the virtual machine file, encrypting the virtual machine file, and/or single-instancing or deduplicating data objects within the virtual machine file. After the VM life cycle management system 200 has copied the virtual machine file to the storage device 116, the VM life cycle management system 200 replaces the virtual machine file with a stub. A stub is typically a small data object that indicates, points to or refers to the location of the secondary copy of the virtual machine file and facilitates recovery of the virtual machine file. More details as to archiving operations may be found in the commonly-assigned currently pending U.S. Patent Application Number 2008/0229037, the entirety of which is incorporated by reference herein. The stub allows the virtual machine file to be retrieved in case a user wishes to recover the virtual machine file.

The VM life cycle management system 200 may apply archive rules or criteria to archive virtual machine files. Such archive rules or criteria may be based on any combination of data object type, data object age, data object size, percentage of disk quota, remaining storage, and/or other factors. The VM life cycle management system 200 could also apply policies such as storage policies to determine if and when to archive virtual machine files. For example, the virtual machine 110 could be associated with an archive policy that indicates that if the virtual machine 110 has been idle for a first predefined period of time, the virtual machine is to be shut down and then immediately archived. As another example, a virtual machine 110 could be associated with a storage policy that indicates that regardless of whether or not the virtual machine 110 is idle, the virtual machine 110 is never to be shut down or archived.

At step 325, the VM life cycle management system 200 restores the archived virtual machine, e.g., as described in greater detail herein with respect to FIG. 4. After step 325 the process 300 concludes.

Although described herein as shutting down idle virtual machines, the system and methods described herein may similarly detect physical machines that have been idle for a predefined period of time and shut down or power off the idle physical machines, or otherwise reduce their functionality. By shutting down idle machines, either virtual or physical, the VM life cycle management system may assist in meeting “green energy” certifications, standards, or other benchmarks, such as being a Green Energy Compliant System.

Illustrative Restore Process

FIG. 4 is a flow diagram illustrating a process 400 implemented by the VM life cycle management system 200 in connection with restoring an archived virtual machine 110. The process 400 begins at step 402, where the VM life cycle management system 200 provides an indication that the virtual machine 110 has been archived. The VM life cycle management system 200 may e.g., indicate that the virtual machine 110 has been archived by displaying the virtual machine 110 with an icon that is different from the icon that is displayed with a virtual machine 110 that has not been archived. At step 405, the VM life cycle management system 200 detects a selection of the archived virtual machine 110. At step 410, the VM life cycle management system provides an option to restore the archived virtual machine 110. For example, upon detecting a right-click of the icon associated with the archived virtual machine 110, the VM life cycle management system 200 may display a right-click option of “recover and restart” for the archived virtual machine 110. At step 415, the VM life cycle management system detects a selection of the option to restore the virtual machine file.

At step 420, the VM life cycle management system 200 restores the archived virtual machine file by copying the archived virtual machine file from the storage device 116 to the virtual machine host 105. As virtual machine files may be quite large, the recovery process may be somewhat lengthy. During the recovery process, the VM life cycle management system 200 may display an indication of the status of the recovery process. The VM life cycle management system 200 may also perform other operations upon the virtual machine file, such as decompressing the virtual machine file, decrypting the virtual machine file, and/or replacing data objects that had been removed from the virtual machine file by, e.g., deduplication or single-instancing processes. After the VM life cycle management system 200 has recovered the virtual machine file, at step 425 the VM life cycle management system 200 provides a notification that the archived virtual machine 110 has been restored to the virtual machine host 105. For example, the VM life cycle management system 200 may send an electronic message to the user that requested that the virtual machine 110 be recovered. The electronic message notifies the user of the recovery of the virtual machine 110. At step 430, the VM life cycle management system starts the recovered virtual machine 110. The VM life cycle management system 200 may start the virtual machine 110 in the state it was in when it was archived.

The VM life cycle management system 200 may also perform other actions once the virtual machine 110 has been recovered. For example, the VM life cycle management system 200 may cause services running on the virtual machine 110 to start, the VM life cycle management system may cause an operation to be performed by the virtual machine 110, such as running a batch job, or perform other actions. As another example, the VM life cycle management system 200 may have a standard set of operations that the virtual machine 110 is to perform upon being recovered. The VM life cycle management system 200 may provide the standard set of instructions to the virtual machine 110, so that the virtual machine 110 can perform the instructions upon restarting. Those of ordinary skill in the art will understand that the virtual machine 110, upon being recovered, can perform various actions or operations, and is not limited to the examples given herein. After step 430, the process 400 concludes.

One advantage of the techniques described herein is that the VM life cycle management system 200 can detect idleness of virtual machines 110 across different types of heterogeneous virtual machine environments. For example, the VM life cycle management system 200 may be able to detect idleness of VMware virtual machines, Microsoft hyper-v virtual machines, Amazon Cloud virtual machines, and other types of virtual machines. Accordingly, the detection of idle virtual machines 110 can work across disparate vendors and across heterogeneous operating systems.

Another advantage is that such techniques both facilitate the freeing up of limited resources of virtual machine hosts 105 and provide the capability of easily recovering archived virtual machines 110. Accordingly, a user can both quickly and easily delete virtual machines 110 that may no longer be necessary or required, while retaining the option of recovering the deleted virtual machines 110. Such option may be quite useful, if in the future it is determined that the archived virtual machines 110 are necessary or required.

Although the techniques described herein have been described in the context of detecting and archiving idle virtual machines 110, the techniques may also be used to detect and archive virtual machines 110 for other purposes or virtual machines 110 that are not idle. For example, virtual machines 110 may be leased by or associated with customers on a per virtual machine basis. If the customer discontinues the lease or stops paying for the virtual machine 110, the techniques described herein may be used to detect such refusal to pay, and then shut down and archive the virtual machine 110. For example, the VM life cycle management system 200 could access a billing server, process a job to determine which virtual machines are associated with unpaid bills, and then shut down and archive such virtual machines 110. Upon receiving payment for the virtual machine 110, the VM life cycle management system 200 can recover the virtual machine file associated with the virtual machine 110, such that the user can continue once again to utilize the virtual machine 110.

As another example, the techniques described herein may be used to detect virtual machine hosts 105 that are over-utilized. The VM life cycle management system 200 can detect such over-utilized virtual machine hosts 105, and then shut down and archive the least important or the lowest-priority virtual machines 110. Additionally or alternatively, instead of archiving the virtual machine file to the storage device 116, the VM life cycle management system 200 may instead move the virtual machine file and other associated files to another virtual machine host 105 that the VM life cycle management system 200 has determined is capable of hosting the virtual machine 110.

Managing Virtual Machines Based on Historical Trends

The VM life cycle management system 200 may manage virtual machines based on historical trends. For example, the system 200 may use historical data to determine that a virtual machine host 105 has had a peak load on the virtual machine 110 and may reconfigure the virtual machine host 105 to give the virtual machine 110 more resources at this peak load time. Additionally or alternatively, the system 200 may dynamically move virtual machines 110 from an over-utilized virtual machine host 105 to another virtual machine host 105. The system 200 may do this in real-time based on historical trends and in such a fashion that it is transparent to end users of the virtual machine 110.

As another example, the VM life cycle management system 200 may perform virtual machine management by correlating trending information or historical reports and information obtained from and/or during data storage operations, as well as forecast data for future operations and performance. The system 200 may employ flexible virtual machine management policies and may monitor the operation, utilization, and storage of virtual machine data for a given period to modify or redistribute virtual machines 110 based on results obtained during the monitoring period or determined in forecasts. The system 200 may modify virtual machine configurations during the monitoring period, or may use any obtained information to modify virtual machine configurations.

Suitable Data Storage System

FIG. 5A illustrates an example of one arrangement of resources in a computing network, comprising a data storage system 500. The resources in the data storage system 500 may employ the processes and techniques described herein. The system 500 includes a storage manager 505, one or more data agents 595, one or more secondary storage computing devices 565, one or more storage devices 515, one or more computing devices 530 (called clients 530), one or more data or information stores 560 and 562, a single instancing database 523, an index 511, a jobs agent 520, an interface agent 525, and a management agent 531. The system 500 may represent a modular storage system such as the CommVault QiNetix system, and also the CommVault GALAXY backup system, available from CommVault Systems, Inc. of Oceanport, N.J., aspects of which are further described in the commonly-assigned U.S. patent application Ser. No. 09/610,738, now U.S. Pat. No. 7,035,880, the entirety of which is incorporated by reference herein. The system 500 may also represent a modular storage system such as the CommVault Simpana system, also available from CommVault Systems, Inc.

The system 500 may generally include combinations of hardware and software components associated with performing storage operations on electronic data. Storage operations include copying, backing up, creating, storing, retrieving, and/or migrating primary storage data (e.g., data stores 560 and/or 562) and secondary storage data (which may include, for example, snapshot copies, backup copies, hierarchical storage management (HSM) copies, archive copies, and other types of copies of electronic data stored on storage devices 515). The system 500 may provide one or more integrated management consoles for users or system processes to interface with in order to perform certain storage operations on electronic data as further described herein. Such integrated management consoles may be displayed at a central control system or several similar consoles distributed throughout multiple network locations to provide global or geographically specific network data storage information.

In one example, storage operations may be performed according to various storage preferences, for example, as expressed by a user preference, a storage policy, a schedule policy, and/or a retention policy. A “storage policy” is generally a data structure or other information source that includes a set of preferences and other storage criteria associated with performing a storage operation. The preferences and storage criteria may include, but are not limited to, a storage location, relationships between system components, network pathways to utilize in a storage operation, data characteristics, compression or encryption requirements, preferred system components to utilize in a storage operation, a single instancing or variable instancing policy to apply to the data, and/or other criteria relating to a storage operation. For example, a storage policy may indicate that certain data is to be stored in the storage device 515, retained for a specified period of time before being aged to another tier of secondary storage, copied to the storage device 515 using a specified number of data streams, etc.

A “schedule policy” may specify a frequency with which to perform storage operations and a window of time within which to perform them. For example, a schedule policy may specify that a storage operation is to be performed every Saturday morning from 2:00 a.m. to 4:00 a.m. In some cases, the storage policy includes information generally specified by the schedule policy. (Put another way, the storage policy includes the schedule policy.) A “retention policy” may specify how long data is to be retained at specific tiers of storage or what criteria must be met before data may be pruned or moved from one tier of storage to another tier of storage. Storage policies, schedule policies and/or retention policies may be stored in a database of the storage manager 505, to archive media as metadata for use in restore operations or other storage operations, or to other locations or components of the system 500.

The system 500 may comprise a storage operation cell that is one of multiple storage operation cells arranged in a hierarchy or other organization. Storage operation cells may be related to backup cells and provide some or all of the functionality of backup cells as described in the assignee's U.S. patent application Ser. No. 09/354,058, now U.S. Pat. No. 7,395,282, which is incorporated herein by reference in its entirety. However, storage operation cells may also perform additional types of storage operations and other types of storage management functions that are not generally offered by backup cells.

Storage operation cells may contain not only physical devices, but also may represent logical concepts, organizations, and hierarchies. For example, a first storage operation cell may be configured to perform a first type of storage operations such as HSM operations, which may include backup or other types of data migration, and may include a variety of physical components including a storage manager 505 (or management agent 531), a secondary storage computing device 565, a client 530, and other components as described herein. A second storage operation cell may contain the same or similar physical components; however, it may be configured to perform a second type of storage operations, such as storage resource management (SRM) operations, and may include monitoring a primary data copy or performing other known SRM operations.

Thus, as can be seen from the above, although the first and second storage operation cells are logically distinct entities configured to perform different management functions (i.e., HSM and SRM, respectively), each storage operation cell may contain the same or similar physical devices. Alternatively, different storage operation cells may contain some of the same physical devices and not others. For example, a storage operation cell configured to perform SRM tasks may contain a secondary storage computing device 565, client 530, or other network device connected to a primary storage volume, while a storage operation cell configured to perform HSM tasks may instead include a secondary storage computing device 565, client 530, or other network device connected to a secondary storage volume and not contain the elements or components associated with and including the primary storage volume. (The term “connected” as used herein does not necessarily require a physical connection; rather, it could refer to two devices that are operably coupled to each other, communicably coupled to each other, in communication with each other, or more generally, refer to the capability of two devices to communicate with each other.) These two storage operation cells, however, may each include a different storage manager 505 that coordinates storage operations via the same secondary storage computing devices 565 and storage devices 515. This “overlapping” configuration allows storage resources to be accessed by more than one storage manager 505, such that multiple paths exist to each storage device 515 facilitating failover, load balancing, and promoting robust data access via alternative routes.

Alternatively or additionally, the same storage manager 505 may control two or more storage operation cells (whether or not each storage operation cell has its own dedicated storage manager 505). Moreover, in certain embodiments, the extent or type of overlap may be user-defined (through a control console) or may be automatically configured to optimize data storage and/or retrieval.

Data agent 595 may be a software module or part of a software module that is generally responsible for performing storage operations on the data of the client 530 stored in data store 560/562 or other memory location. Each client 530 may have at least one data agent 595 and the system 500 can support multiple clients 530. Data agent 595 may be distributed between client 530 and storage manager 505 (and any other intermediate components), or it may be deployed from a remote location or its functions approximated by a remote process that performs some or all of the functions of data agent 595.

The overall system 500 may employ multiple data agents 595, each of which may perform storage operations on data associated with a different application. For example, different individual data agents 595 may be designed to handle Microsoft Exchange data, Lotus Notes data, Microsoft Windows 2000 file system data, Microsoft Active Directory Objects data, and other types of data known in the art. Other embodiments may employ one or more generic data agents 595 that can handle and process multiple data types rather than using the specialized data agents described above.

If a client 530 has two or more types of data, one data agent 595 may be required for each data type to perform storage operations on the data of the client 530. For example, to back up, migrate, and restore all the data on a Microsoft Exchange 2000 server, the client 530 may use one Microsoft Exchange 2000 Mailbox data agent 595 to back up the Exchange 2000 mailboxes, one Microsoft Exchange 2000 Database data agent 595 to back up the Exchange 2000 databases, one Microsoft Exchange 2000 Public Folder data agent 595 to back up the Exchange 2000 Public Folders, and one Microsoft Windows 2000 File System data agent 595 to back up the file system of the client 530. These data agents 595 would be treated as four separate data agents 595 by the system even though they reside on the same client 530.

Alternatively, the overall system 500 may use one or more generic data agents 595, each of which may be capable of handling two or more data types. For example, one generic data agent 595 may be used to back up, migrate and restore Microsoft Exchange 2000 Mailbox data and Microsoft Exchange 2000 Database data while another generic data agent 595 may handle Microsoft Exchange 2000 Public Folder data and Microsoft Windows 2000 File System data, etc.

Data agents 595 may be responsible for arranging or packing data to be copied or migrated into a certain format such as an archive file. Nonetheless, it will be understood that this represents only one example, and any suitable packing or containerization technique or transfer methodology may be used if desired. Such an archive file may include metadata, a list of files or data objects copied, the file, and data objects themselves. Moreover, any data moved by the data agents may be tracked within the system by updating indexes associated with appropriate storage managers 505 or secondary storage computing devices 565. As used herein, a file or a data object refers to any collection or grouping of bytes of data that can be viewed as one or more logical units.

Generally speaking, storage manager 505 may be a software module or other application that coordinates and controls storage operations performed by the system 500. Storage manager 505 may communicate with some or all elements of the system 500, including clients 530, data agents 595, secondary storage computing devices 565, and storage devices 515, to initiate and manage storage operations (e.g., backups, migrations, data recovery operations, etc.).

Storage manager 505 may include a jobs agent 520 that monitors the status of some or all storage operations previously performed, currently being performed, or scheduled to be performed by the system 500. (One or more storage operations are alternatively referred to herein as a “job” or “jobs.”) Jobs agent 520 may be communicatively coupled to an interface agent 525 (e.g., a software module or application). Interface agent 525 may include information processing and display software, such as a graphical user interface (“GUI”), an application programming interface (“API”), or other interactive interface through which users and system processes can retrieve information about the status of storage operations. For example, in an arrangement of multiple storage operations cell, through interface agent 525, users may optionally issue instructions to various storage operation cells regarding performance of the storage operations as described and contemplated herein. For example, a user may modify a schedule concerning the number of pending snapshot copies or other types of copies scheduled as needed to suit particular needs or requirements. As another example, a user may employ the GUI to view the status of pending storage operations in some or all of the storage operation cells in a given network or to monitor the status of certain components in a particular storage operation cell (e.g., the amount of storage capacity left in a particular storage device 515).

Storage manager 505 may also include a management agent 531 that is typically implemented as a software module or application program. In general, management agent 531 provides an interface that allows various management agents 531 in other storage operation cells to communicate with one another. For example, assume a certain network configuration includes multiple storage operation cells hierarchically arranged or otherwise logically related in a WAN or LAN configuration. With this arrangement, each storage operation cell may be connected to the other through each respective interface agent 525. This allows each storage operation cell to send and receive certain pertinent information from other storage operation cells, including status information, routing information, information regarding capacity and utilization, etc. These communications paths may also be used to convey information and instructions regarding storage operations.

For example, a management agent 531 in a first storage operation cell may communicate with a management agent 531 in a second storage operation cell regarding the status of storage operations in the second storage operation cell. Another illustrative example includes the case where a management agent 531 in a first storage operation cell communicates with a management agent 531 in a second storage operation cell to control storage manager 505 (and other components) of the second storage operation cell via management agent 531 contained in storage manager 505.

Another illustrative example is the case where management agent 531 in a first storage operation cell communicates directly with and controls the components in a second storage operation cell and bypasses the storage manager 505 in the second storage operation cell. If desired, storage operation cells can also be organized hierarchically such that hierarchically superior cells control or pass information to hierarchically subordinate cells or vice versa.

Storage manager 505 may also maintain an index, a database, or other data structure 511. The data stored in database 511 may be used to indicate logical associations between components of the system, user preferences, management tasks, media containerization and data storage information or other useful data. For example, the storage manager 505 may use data from database 511 to track logical associations between secondary storage computing device 565 and storage devices 515 (or movement of data as containerized from primary to secondary storage).

Generally speaking, the secondary storage computing device 565, which may also be referred to as a media agent, may be implemented as a software module that conveys data, as directed by storage manager 505, between a client 530 and one or more storage devices 515 such as a tape library, a magnetic media storage device, an optical media storage device, or any other suitable storage device. In one embodiment, secondary storage computing device 565 may be communicatively coupled to and control a storage device 515. A secondary storage computing device 565 may be considered to be associated with a particular storage device 515 if that secondary storage computing device 565 is capable of routing and storing data to that particular storage device 515.

In operation, a secondary storage computing device 565 associated with a particular storage device 515 may instruct the storage device to use a robotic arm or other retrieval means to load or eject a certain storage media, and to subsequently archive, migrate, or restore data to or from that media. Secondary storage computing device 565 may communicate with a storage device 515 via a suitable communications path such as a SCSI or Fibre Channel communications link. In some embodiments, the storage device 515 may be communicatively coupled to the storage manager 505 via a SAN.

Each secondary storage computing device 565 may maintain an index, a database, or other data structure 561 that may store index data generated during storage operations for secondary storage (SS) as described herein, including creating a metabase (MB). For example, performing storage operations on Microsoft Exchange data may generate index data. Such index data provides a secondary storage computing device 565 or other external device with a fast and efficient mechanism for locating data stored or backed up. Thus, a secondary storage computing device index 561, or a database 511 of a storage manager 505, may store data associating a client 530 with a particular secondary storage computing device 565 or storage device 515, for example, as specified in a storage policy, while a database or other data structure in secondary storage computing device 565 may indicate where specifically the data of the client 530 is stored in storage device 515, what specific files were stored, and other information associated with storage of the data of the client 530. In some embodiments, such index data may be stored along with the data backed up in a storage device 515, with an additional copy of the index data written to index cache in a secondary storage device. Thus the data is readily available for use in storage operations and other activities without having to be first retrieved from the storage device 515.

Generally speaking, information stored in cache is typically recent information that reflects certain particulars about operations that have recently occurred. After a certain period of time, this information is sent to secondary storage and tracked. This information may need to be retrieved and uploaded back into a cache or other memory in a secondary computing device before data can be retrieved from storage device 515. In some embodiments, the cached information may include information regarding format or containerization of archives or other files stored on storage device 515.

One or more of the secondary storage computing devices 565 may also maintain one or more single instance databases 523. Single instancing (alternatively called data deduplication) generally refers to storing in secondary storage only a single instance of each data object (or data block) in a set of data (e.g., primary data). More details as to single instancing may be found in one or more of the following commonly-assigned U.S. patent applications: 1) U.S. patent application Ser. No. 11/269,512 (entitled SYSTEM AND METHOD TO SUPPORT SINGLE INSTANCE STORAGE OPERATIONS, Attorney Docket No. 60692-8023US00); 2) U.S. patent application Ser. No. 12/145,347 (entitled APPLICATION-AWARE AND REMOTE SINGLE INSTANCE DATA MANAGEMENT, Attorney Docket No. 60692-8056US00); or 3) U.S. patent application Ser. No. 12/145,342 (entitled APPLICATION-AWARE AND REMOTE SINGLE INSTANCE DATA MANAGEMENT, Attorney Docket No. 60692-8057US00), 4) U.S. patent application Ser. No. 11/963,623 (entitled SYSTEM AND METHOD FOR STORING REDUNDANT INFORMATION, Attorney Docket No. 60692-8036US02); 5) U.S. patent application Ser. No. 11/950,376 (entitled SYSTEMS AND METHODS FOR CREATING COPIES OF DATA SUCH AS ARCHIVE COPIES, Attorney Docket No. 60692-8037US01); or 6) U.S. Pat App. No. 61/100,686 (entitled SYSTEMS AND METHODS FOR MANAGING SINGLE INSTANCING DATA, Attorney Docket No. 60692-8067US00), each of which is incorporated by reference herein in its entirety.

In some examples, the secondary storage computing devices 565 maintain one or more variable instance databases. Variable instancing generally refers to storing in secondary storage one or more instances, but fewer than the total number of instances, of each data block (or data object) in a set of data (e.g., primary data). More details as to variable instancing may be found in the commonly-assigned U.S. Pat. App. No. 61/164,803 (entitled STORING A VARIABLE NUMBER OF INSTANCES OF DATA OBJECTS, Attorney Docket No. 60692-8068US00).

In some embodiments, certain components may reside and execute on the same computer. For example, in some embodiments, a client 530 such as a data agent 595, or a storage manager 505, coordinates and directs local archiving, migration, and retrieval application functions as further described in the previously-referenced U.S. patent application Ser. No. 09/610,738. This client 530 can function independently or together with other similar clients 530.

As shown in FIG. 5A, secondary storage computing devices 565 each has its own associated metabase 561. Each client 530 may also have its own associated metabase 570. However in some embodiments, each “tier” of storage, such as primary storage, secondary storage, tertiary storage, etc., may have multiple metabases or a centralized metabase, as described herein. For example, rather than a separate metabase or index associated with each client 530 in FIG. 5A, the metabases on this storage tier may be centralized. Similarly, second and other tiers of storage may have either centralized or distributed metabases. Moreover, mixed architecture systems may be used if desired, that may include a first tier centralized metabase system coupled to a second tier storage system having distributed metabases and vice versa, etc.

Moreover, in operation, a storage manager 505 or other management module may keep track of certain information that allows the storage manager 505 to select, designate, or otherwise identify metabases to be searched in response to certain queries as further described herein. Movement of data between primary and secondary storage may also involve movement of associated metadata and other tracking information as further described herein.

In some examples, primary data may be organized into one or more sub-clients. A sub-client is a portion of the data of one or more clients 530, and can contain either all of the data of the clients 530 or a designated subset thereof. As depicted in FIG. 5A, the data store 562 includes two sub-clients. For example, an administrator (or other user with the appropriate permissions; the term administrator is used herein for brevity) may find it preferable to separate email data from financial data using two different sub-clients having different storage preferences, retention criteria, etc.

Distribution of Data Management Functionality in a Suitable Data Storage System

Various discrete data management functionalities provided by the data storage system 500, including virtual machine management, may be distributed or divided so the functionalities are implemented across software modules on various devices capable of docking with a full-featured data management system. FIG. 5B illustrates an environment 550 in which discrete data management functionalities provided by the data storage system 500 are distributed between software modules on various devices capable of docking with a full-featured data management system. As shown, the environment 550 includes one or more limited-feature data management devices 522, each coupled via one or more networks 588 to a full-featured data management system 524.

Each of the limited-feature devices 522 includes a memory 518 having software 514 that in turn includes one or more limited-feature data management modules 512. Each limited-feature module 512 is capable of providing a particular, but limited, set of data management features alone, without the assistance or intervention of other modules or the full-featured system 524. However, each limited-feature module 512 may also be capable of providing, in whole or in part, additional synergistic features, outside of its limited set of data management features, but only after it has been docked to the full-featured 524, as described in greater detail herein.

Examples of limited-feature modules 512 include:

(1) A limited-feature virtual machine life cycle management module configured to provide the standalone ability to shut down virtual machines, which may include the virtual machine creation component 215, idleness determination component 230 and API 256 described above.

(2) A limited-feature private search module configured to provide the standalone ability to provide search results for a selected, restricted set of Internet sites.

(3) A limited-feature backup module configured to back up the data of client computers, but in a limited manner that is (a) constrained by the number of client computers or subclients that are backed up, (b) constrained by the volume of data that is backed up, or (c) otherwise constrained in the volume or quantity of data that is backed up.

(4) Data agents 595, as described herein.

(5) Secondary storage computing devices 565, as described herein.

(6) A limited-feature content store module that is configured to provide the standalone ability to create content stores in primary storage, as described further herein, but is unable to create content stores in secondary storage. Additional functionality that may be provided by limited-feature modules, and details on such functionality, may be found in the commonly-assigned patent application Ser. No. 12/751,804, entitled PERFORMING DATA STORAGE OPERATIONS WITH A CLOUD ENVIRONMENT, INCLUDING CONTAINERIZED DEDUPLICATION, DATA PRUNING, AND DATA TRANSFER, filed Mar. 31, 2010, now U.S. Patent Publication No. 2010/0332454.

The memory 518 of each limited-feature device 522 also comprises data 516, which in turn includes one or more sets of metadata or data 508 generated by, used by, or otherwise associated with a particular limited-feature module 512. For example, the set of metadata or data 508A may include secondary copies of data or metadata generated by storage operations performed by module 512A and/or configuration settings, including storage policies and other policies, used by module 512A. A single limited-feature device 522 may have any combination of one or more limited-feature modules 512 installed on it.

The limited-feature device 522 can be implemented by or in any of the components illustrated in FIGS. 1 and 5A, such as by or in the virtual machine hosts 105, the virtual machine manager 150, the virtual machine proxy 145, the secondary storage computing device 165/565, the client 530, or the storage manager 505. The functionality of the limited-feature device 522 may be performed by any or all of such components.

The full-featured system 524 is configured to provide or facilitate numerous additional data management features, namely features that are not provided by any of the limited-feature modules 512 alone. For example, the full-featured system 524 may provide features such as those described in the commonly-assigned patent applications incorporated by reference herein, including: policy-driven data management; data replication and protection; cloud storage integration; storage resource management, analysis, optimization, and reporting; data archiving, deduplication, compression and encryption; electronic discovery (E-discovery), privacy, retention life cycle, and compliance management; backup and recovery; content indexing; data classification; enterprise and collaborative data mining and search; migration from legacy data storage solutions; virtual server protection; disaster recovery; access control and security. As shown, the memory 548 of the full-featured system 524 typically includes software 552, such a storage manager 505 and its constituent components described herein, and may also include global storage policies and other types of policies applicable to numerous limited-feature devices 522. One example of a full-featured system 524 is the Common Technology Engine of the Simpana system introduced above.

Each limited-feature device 522 and the full-featured system 524 also comprise a communication module 504 for connecting to networks 588 and for initiating and conducting communications with other devices on the networks. The communication module 504 also permits each limited-feature device 522 and the full-featured system 524 to perform authentication procedures. The communication module 504 is configured to conduct communications with other devices via the Windows Management Instrumentation (WMI) service, via another operating system interface, via a Secure Shell (SSH) or similar network connection, and/or by listening for and exchanging messages via a designated port (e.g., port 8400). In other words, the limited-feature device 522 and the full-featured system 524 employ a common protocol and known APIs to ensure seamless connectivity and interface between the two.

Each limited-feature device 522 and the full-featured system 524 further includes one or more central processing units (CPU) 506 for executing software, and a computer-readable media drive 502 for reading information or installing software from tangible computer-readable storage media, such as a floppy disk, a CD-ROM, a DVD, a USB flash drive, and/or other tangible computer-readable storage media. Each limited-feature device 522 and the full-featured system 524 may also include one or more of the following: an information input device 542 (for example, a mouse, a keyboard, microphone, remote control, etc.), and an information output device 546 (for example, a display, printer, speakers, etc.)

While various items are described as stored in memory, those skilled in the art will appreciate that these items, or portions of them, may be transferred between memory and a persistent storage device 544 (for example, a magnetic hard drive, a tape of a tape library, etc.) for purposes of memory management, data integrity, and/or other purposes.

Although only a single full-featured system 524 is shown, a single limited-feature device 522 may dock to two or more different full-featured systems 524.

Distribution of Virtual Machine Management Functionality Via Docking

Returning to the specific example of managing virtual machines, FIG. 6 shows a flow diagram illustrating a process 600 for docking a limited-feature virtual machine (VM) life cycle management module with a full-featured data management system 524. The process 600 begins at block 605, when a limited-feature VM life cycle management module generates and stores metadata and/or data related to virtual machines in primary storage, which may occur, for example, by the limited-feature VM life cycle management module performing blocks 301, 302, 303, 305 and/or 310 of process 300. Next at block 610, the limited-feature VM life cycle management module shuts down idle virtual machines, which may occur, for example, by the limited-feature VM life cycle management module performing block 315 of process 300. At block 615, the limited-feature VM life cycle management module discovers and docks with a full-featured system 524, as described above.

At block 620, the limited-feature VM life cycle management module receives virtual machine life cycle management configuration settings, other configuration settings or policies, and/or other commands from the full-featured system 524. For example, the VM life cycle management module may receive the archive or storage rules, criteria, and policies described previously that, among other things, determine if, when, and how virtual machines should be shut down, backed up, and/or archived.

At block 625, the limited-feature VM life cycle management module and/or full-featured system 524 performs storage operations that may, for example create secondary copies of the stored metadata or data, integrate the generated metadata or data, or restore metadata or data. At block 625, the limited-feature VM life cycle management module, in conjunction with the full-featured system 524 may backup and/or archive the virtual machine disk files, virtual hard disk image files, and/or similar virtual machine files, e.g., as described at block 320 of process 300. Also at block 625, the limited-feature VM life cycle management module may transmit the generated metadata in primary storage to the full-featured system 524 in order to integrate the generated metadata with metadata related to other virtual machines or other clients in other storage operation cells managed by the full-featured system 524. As yet another example, the limited-feature VM life cycle management module, in conjunction with the full-featured system 524, may restore an archived virtual machine, e.g., by performing process 400 of FIG. 4. Additionally, in conjunction with these storage operations, the full-featured system 524 may provide additional storage management features, such as deduplication, compression, content indexing, data classification, or other operations, e.g., upon backed up or archived virtual machine files.

Illustrative Processes for Repurposing of Virtual Machine

FIG. 7 is a flow diagram illustrating a process implemented by the VM life cycle management system 200 in connection with preparing data for repurposing a virtual machine 110. The process 700 begins at step 705, where the system 200 receives a request to create a virtual machine. The request may include specifications for a virtual machine, including, for example, virtual processor speed, virtual hard disk size, virtual RAM memory size, operating system, and so forth. At step 710, the system creates a virtual machine based on the received specifications.

At step 715, the system 200 stores a copy of repurposing data associated with the virtual machine. Repurposing data includes data associated with the virtual machine when the virtual machine is in a generic state from which it may be configured for either of two or more different users each having different projects or uses for the VM. For example, repurposing data may include data associated with the virtual machine that is copied immediately after the virtual machine has been created. For example, repurposing data is an image of the virtual machine before any customization, or may include data associated with the virtual machine after the virtual machine has been customized for one or more possible users. Repurposing data may include a copy of a database associated with a virtual machine. For example, repurposing data may include a copy of the database 511 of the storage manager 505. In some implementations, repurposing data is a copy of the CommServe database. Repurposing data may be stored in a storage area associated with the system, such as storage device 515, or may be stored remotely.

After the system 200 stores a copy of the repurposing data, at block 720, the system customizes the virtual machine for a user. For example, system may execute a user script or a generic client script to customize the virtual machine. In some implementations, the system receives administrator input to add a user to the virtual machine. The system may treat the new virtual machine as it would other new virtual machines, such as by configuring it via Active Directory data, registering it, requesting administrator approval to add it to a network, and so forth. In some implementations, the system configures the virtual machine prior to storing the repurposing data. For example, the system may configure the virtual machine with Active Directory, register it, and add it to a network prior to storing repurposing data and customizing the virtual machine for the user.

FIG. 8 is a flow diagram illustrating a process implemented by the VM life cycle management system 200 in connection with repurposing a virtual machine 110. The process 800 begins at step 805, where the system 200 selects a virtual machine to repurpose. In some implementations, the system selects a virtual machine from among many different virtual machines based on one or more criteria. In some implementations, a virtual machine is selected by the system because it is to be aged off. A process for selecting a virtual machine to repurpose is discussed below with respect to FIG. 9.

At step 810, the system identifies repurposing data associated with the selected virtual machine. In some implementations, the virtual machine identifies a storage location where the system may find repurposing data, such as in a folder in storage device 515 where repurposing data for all VMs are stored.

At step 815, the system deletes data currently associated with the existing virtual machine. For example, if the repurposing data consists of a copy of a CommServe database, the VM life cycle management system 200 deletes the CommServe database that is currently associated with the existing virtual machine. In some implementations, the system stores the corresponding data that is deleted, just prior to deleting it. The system can use this data to restore the virtual machine to the state it was in prior to it being repurposed.

At step 820, the system merges the existing virtual machine with the identified repurposing data. For example, the system may cause the virtual machine to merge repurposing data consisting of a previously-stored copy of a CommServe database identified in step 810. In some implementations, after being merged with repurposing data, the virtual machine remains on the domain that it was in prior to being repurposed. For example, if repurposing data associated with a virtual machine was copied after the virtual machine was added to a domain, the virtual machine may remain on the domain after the repurposing data is merged.

After the virtual machine is merged with repurposing data, the system may treat the virtual machine as it would any new virtual machine. At step 825, the system customizes the virtual machine for a user. For example, the VM life cycle management system 200 may execute a script to configure the virtual machine for a user. In some implementations, the system receives a command from an administrator to add the user to the virtual machine. Alternatively or additionally the system customizes the virtual machine based at least in part on credentials associated with the user.

FIG. 9 is a flow diagram illustrating a process implemented by the VM life cycle management system 200 in connection with selecting a virtual machine to repurpose. The process 900 begins at step 905, where the system 200 receives a request to create a virtual machine. The request may originate from an administrator or a user. In some implementations, the request originates in the system itself. For example, a virtual machine may include a property that specifies that it be aged off periodically. The system may monitor this virtual machine and repurpose it as required.

At step 910, the VM life cycle management system receives a specification for a virtual machine. In some implementations, the system also receives user information, such as credentials held by the user. In some implementations, no specification is provided and the system considers a default specification or none at all. In other implementations, the system receives a request for a particular virtual machine.

The received specification identifies configuration parameters for the virtual machine, including required or preferred values that the system is to honor or consider, respectively, in selecting a virtual machine to repurpose. The following table includes an example of a data structure of user information and configuration parameters that may be part of a specification for virtual machine that may be repurposed. While one example is shown, many entries may be provided corresponding to multiple, idle/archived VMs that may be repurposed.

TABLE 1 Example of user information and configuration parameters of a specification. SCSI Operating Network Username Credentials CPU Memory Device System //dev/vm MJackson Admin >3 GHz 4 GB RAM ~200 GB Windows 8 hard disk For the example above, the specification identifies a network for the virtual machine; a username of a user requesting a virtual machine; credentials associated with the user; a required range for a virtual processor's speed; a required amount of Random Access Memory; a preferred hard disk size; and a required operating system. Other parameters may of course be tracked in the table.

At decision block 915, the VM life cycle management system determines whether any virtual machines are available for repurposing. The system may search a domain in Active Directory for active virtual machines and/or search across domains in an ESX server. In some implementations, the system searches a directory of active virtual machines available across different customers and clients, and the system may identify available virtual machines for which it may provide an appropriate level of security for a user. The system may also search a directory of idle virtual machines and/or a directory of archived virtual machines. A virtual machine may be unavailable for repurposing for many reasons. As examples, a virtual machine may be in use, be flagged as unavailable for repurposing, be reserved, not be associated with repurposing data, or so on. If at decision block 915, the system does not identify any virtual machines that are available for repurposing, the process proceeds to step 935, where the system creates a new virtual machine. A process for creating and preparing a new virtual machine that may be repurposed is discussed above with respect to FIG. 7.

If at decision block 915 the system does identify a virtual machine to repurpose, the process proceeds to decision block 920. At decision block 920, the VM life cycle management system determines whether any of the available virtual machines are suitable for being repurposed. A virtual machine is determined to be suitable for being repurposed if it meets the received specification and user requirements, such as those included in Table 1. The system may attempt to find the VM that meets the minimum requirements of the request if more than one VM may satisfy the request. The virtual machine may be associated with additional or other properties relative to those of the example specification of Table 1. Other properties of a virtual machine include a date that the virtual machine was created and/or last repurposed, a duration that the virtual machine has been idle, a priority code (e.g., a flag indicating that the virtual machine is not repurposable), and so forth. The following table provides an example of available virtual machines and the properties that they are associated with.

TABLE 2 Example of virtual machines available for repurposing and their properties. VM SCSI name Network User CPU Memory device OS Date Idle Code VM1 //dev/vm Janet 3 GHz 4 GB 150 GB Win 8 Sep. 1, 2012 7 d Repurp. RAM hard disk VM2 //dev/vm Tito 2 GHz 2 GB 200 GB Win 7 Sep. 9, 2012 1 h Repurp. RAM hard disk For the example above, the available virtual machines include properties specifying a VM name, a network for the virtual machine, a current user, virtual processor speed, RAM memory, SCSI devices, operating system, the date the virtual machine was created, a duration that the virtual machine has been idle, and a priority code indicating whether a virtual machine is repurposable. Other properties may of course be tracked in the table.

If at decision block 920, the system determines that there are no available virtual machines that are suitable, the process proceeds to step 935, where the system creates a new virtual machine. In some implementations, rather than create a new virtual machine at step 935, the system waits for an available and suitable virtual machine, and the system may only wait for a limited time period (e.g. set by an administrator). In other implementations, the system asks a user or administrator whether the system should wait for a suitable virtual machine. In some implementations, the system offers to the user an available virtual machine that does not appear to be suitable to the user. The user may then decide to accept the virtual machine in order for it to be repurposed for the user.

If the VM life cycle management system identifies at least one virtual machine that is available and suitable, the process proceeds to step 925, where the system selects a virtual machine to repurpose. If more than one virtual machine is available and suitable, the system may select a particular virtual machine to repurpose. In some implementations, the system selects a virtual machine that has been idle for the longest period of time. In some implementations, the system selects the virtual machine that most closely matches the received specification. In some implementations, the system refrains from selecting a virtual machine that is far more powerful than the received specification provides for. For example, if a user requested a virtual machine having a 10 GB virtual hard drive, the system may refrain from selecting a virtual machine that has a 1 TB virtual hard drive. In some implementations, the system decides whether to refrain from selecting an otherwise suitable virtual machine if the otherwise suitable virtual machine is associated with a configuration parameter that has a value more than a certain magnitude larger than what was specified in the received specification. The system may prefer an idle virtual machine over an archived virtual machine, such as when the virtual machine is needed by a user immediately. The system may send a notification to a previous user of the virtual machine that is selected, informing the previous user that the selected virtual machine is no longer available.

After a virtual machine is selected, at step 930, the VM life cycle management system repurposes the virtual machine. A process for repurposing a virtual machine was discussed above with reference to FIG. 8. After a virtual machine is repurposed, the properties and/or data structure associated with the virtual machine are changed. For example, in Table 2 above, if VM1 is repurposed for user MJackson, the current user field may be updated to reflect MJackson as the current user, and the code associated with the virtual machine may be changed as well to indicate that the virtual machine is no longer available for repurposing. Other properties may also be changed according to the new user.

CONCLUSION

Systems and modules described herein may comprise software, firmware, hardware, or any combination(s) of software, firmware, or hardware suitable for the purposes described herein. Software and other modules may reside on servers, workstations, personal computers, computerized tablets, PDAs, and other devices suitable for the purposes described herein. Modules described herein may be executed by a general-purpose computer, e.g., a server computer, wireless device, or personal computer. Those skilled in the relevant art will appreciate that aspects of the invention can be practiced with other communications, data processing, or computer system configurations, including: Internet appliances, hand-held devices (including personal digital assistants (PDAs)), wearable computers, all manner of cellular or mobile phones, multi-processor systems, microprocessor-based or programmable consumer electronics, set-top boxes, network PCs, mini-computers, mainframe computers, and the like. Indeed, the terms “computer,” “server,” “host,” “host system,” and the like, are generally used interchangeably herein and refer to any of the above devices and systems, as well as any data processor. Furthermore, aspects of the invention can be embodied in a special purpose computer or data processor that is specifically programmed, configured, or constructed to perform one or more of the computer-executable instructions explained in detail herein.

Software and other modules may be accessible via local memory, a network, a browser, or other application in an ASP context, or via another means suitable for the purposes described herein. Examples of the technology can also be practiced in distributed computing environments where tasks or modules are performed by remote processing devices, which are linked through a communications network, such as a Local Area Network (LAN), Wide Area Network (WAN), or the Internet. In a distributed computing environment, program modules may be located in both local and remote memory storage devices. Data structures described herein may comprise computer files, variables, programming arrays, programming structures, or any electronic information storage schemes or methods, or any combinations thereof, suitable for the purposes described herein. User interface elements described herein may comprise elements from graphical user interfaces, command line interfaces, and other interfaces suitable for the purposes described herein.

Examples of the technology may be stored or distributed on computer-readable media, including magnetically or optically readable computer disks, hard-wired or preprogrammed chips (e.g., EEPROM semiconductor chips), nanotechnology memory, biological memory, or other data storage media. Indeed, computer-implemented instructions, data structures, screen displays, and other data under aspects of the invention may be distributed over the Internet or over other networks (including wireless networks), on a propagated signal on a propagation medium (e.g., an electromagnetic wave(s), a sound wave, etc.) over a period of time, or they may be provided on any analog or digital network (packet switched, circuit switched, or other scheme).

Unless the context clearly requires otherwise, throughout the description and the claims, the words “comprise,” “comprising,” and the like are to be construed in an inclusive sense, as opposed to an exclusive or exhaustive sense; that is to say, in the sense of “including, but not limited to.” As used herein, the terms “connected,” “coupled,” or any variant thereof, means any connection or coupling, either direct or indirect, between two or more elements; the coupling or connection between the elements can be physical, logical, or a combination thereof. Additionally, the words “herein,” “above,” “below,” and words of similar import, when used in this application, refer to this application as a whole and not to any particular portions of this application. Where the context permits, words in the above Detailed Description using the singular or plural number may also include the plural or singular number respectively. The word “or,” in reference to a list of two or more items, covers all of the following interpretations of the word: any of the items in the list, all of the items in the list, and any combination of the items in the list.

The above Detailed Description is not intended to be exhaustive or to limit the invention to the precise form disclosed above. While specific examples for the invention are described above for illustrative purposes, various equivalent modifications are possible within the scope of the invention, as those skilled in the relevant art will recognize. For example, while processes or blocks are presented in a given order, alternative implementations may perform routines having steps, or employ systems having blocks, in a different order, and some processes or blocks may be deleted, moved, added, subdivided, combined, and/or modified to provide alternative or subcombinations. Each of these processes or blocks may be implemented in a variety of different ways. Also, while processes or blocks are at times shown as being performed in series, these processes or blocks may instead be performed or implemented in parallel, or may be performed at different times. Further any specific numbers noted herein are only examples: alternative implementations may employ differing values or ranges.

The teachings of the invention provided herein can be applied to other systems, not necessarily the systems described herein. The elements and acts of the various examples described above can be combined to provide further implementations of the invention.

Any patents and applications and other references noted above, including any that may be listed in accompanying filing papers, and the assignee's U.S. Pat. No. 8,307,177 and U.S. patent application Ser. No. 13/250,962, filed Sep. 30, 2011, are incorporated herein by reference. Aspects of the invention can be modified, if necessary, to employ the systems, functions, and concepts of the various references described above to provide yet further implementations of the invention.

These and other changes can be made to the invention in light of the above Detailed Description. While the above description describes certain examples of the invention and describes the best mode contemplated, no matter how detailed the above appears in text, the invention can be practiced in many ways. Details of the system may vary considerably in its specific implementation, while still being encompassed by the invention disclosed herein. As noted above, particular terminology used when describing certain features or aspects of the invention should not be taken to imply that the terminology is being redefined herein to be restricted to any specific characteristics, features, or aspects of the invention with which that terminology is associated. In general, the terms used in the following claims should not be construed to limit the invention to the specific examples disclosed in the specification, unless the above Detailed Description section explicitly defines such terms. Accordingly, the actual scope of the invention encompasses not only the disclosed examples, but also all equivalent ways of practicing or implementing the invention under the claims.

While certain examples are presented below in certain forms, the applicant contemplates the various aspects of the invention in any number of claim forms. Accordingly, the applicant reserves the right to add additional claims after filing the application to pursue such additional claim forms for other aspects of the invention. 

We claim:
 1. A method to be performed by a computing system for repurposing a virtual machine, the method comprising: receiving a request that a virtual machine be created for a user, wherein the request identifies at least one configuration parameter for the virtual machine, and identifying one or more existing virtual machines repurposable to the user that include configuration parameters that match the at least one configuration parameter identified in the request; selecting an existing virtual machine for repurposing to the user associated with the request, by: when there is an idle virtual machine that matches the at least one configuration parameter identified in the request, selecting the idle virtual machine for repurposing to the user; and when there is no idle virtual machine that matches the at least one configuration parameter identified in the request, selecting an archived virtual machine for repurposing to the user; repurposing the selected virtual machine for the user by loading repurposing data to the selected virtual machine, including switching permissions or ownership of the repurposed machine from a previous user of the repurposed virtual machine to the user associated with the request.
 2. The method of claim 1, wherein selecting an existing virtual machine for repurposing to the user associated with the request includes selecting an existing virtual machine based on a time period that the existing virtual machine has been idle.
 3. The method of claim 1, wherein selecting an existing virtual machine for repurposing to the user associated with the request includes selecting an existing virtual machine based on a relative similarity between the existing virtual machine and the requested virtual machine.
 4. The method of claim 1, further comprising: customizing the repurposed virtual machine for the user based at least in part on credentials associated with the user.
 5. The method of claim 1, wherein loading repurposing data to the selected virtual machine includes: deleting data corresponding to the repurposing data, wherein the data corresponding to the repurposing data is presently associated with the selected virtual machine, and merging the repurposing data with the selected virtual machine.
 6. The method of claim 1, wherein the repurposing data includes a copy of a database in a data storage management system that stores metadata, media management, policies, reporting, and licensing information for the selected virtual machine.
 7. The method of claim 1, wherein the repurposing data includes a copy of a database associated with the selected virtual machine, wherein the copy of the database was created before the selected virtual machine was customized by or for a user.
 8. A non-transitory computer-readable storage medium storing instructions, which when executed by at least one data processing device, performs a method comprising: receiving a request that a virtual machine be created for a user, wherein the request identifies at least one configuration parameter for the virtual machine, and identifying one or more existing virtual machines repurposable to the user that include configuration parameters that match the at least one configuration parameter identified in the request; selecting an existing virtual machine for repurposing to the user associated with the request, by: when there is a presently unused virtual machine that matches the at least one configuration parameter identified in the request, selecting the presently unused virtual machine for repurposing to the user; and when there is no presently unused virtual machine that matches the at least one configuration parameter identified in the request, selecting an archived virtual machine for repurposing to the user; repurposing the selected virtual machine for the user by loading repurposing data to the selected virtual machine, including switching permissions or ownership of the repurposed machine from a previous user of the repurposed virtual machine to the user associated with the request.
 9. The non-transitory computer-readable storage medium of claim 8, wherein selecting an existing virtual machine for repurposing to the user associated with the request includes selecting an existing virtual machine based on a time period that the existing virtual machine has not been in use.
 10. The non-transitory computer-readable storage medium of claim 8, wherein selecting an existing virtual machine for repurposing to the user associated with the request includes selecting an existing virtual machine based on a relative similarity between the existing virtual machine and the requested virtual machine.
 11. The non-transitory computer-readable storage medium of claim 8, further comprising: customizing the repurposed virtual machine for the user based at least in part on credentials associated with the user.
 12. The non-transitory computer-readable storage medium of claim 8, wherein loading repurposing data to the selected virtual machine includes: deleting data corresponding to the repurposing data, wherein the data corresponding to the repurposing data is presently associated with the selected virtual machine, and merging the repurposing data with the selected virtual machine.
 13. The non-transitory computer-readable storage medium of claim 8, wherein the repurposing data includes a copy of a database in a data storage management system that stores metadata, media management, policies, reporting, and licensing information for the selected virtual machine.
 14. The non-transitory computer-readable storage medium of claim 8, wherein the repurposing data includes a copy of a database associated with the selected virtual machine, wherein the copy of the database was created before the selected virtual machine was customized by or for a user.
 15. A system for repurposing a virtual machine, the system comprising: at least one processor; memory coupled to the at least one processor; means for receiving a request that a virtual machine be created for a user, wherein the request identifies at least one configuration parameter for the virtual machine, and means for identifying one or more existing virtual machines repurposable to the user that include configuration parameters that match the at least one configuration parameter identified in the request; means for selecting an existing virtual machine for repurposing to the user associated with the request, by: when there is an idle virtual machine that matches the at least one configuration parameter identified in the request, selecting the idle virtual machine for repurposing to the user; and when there is no idle virtual machine that matches the at least one configuration parameter identified in the request, selecting an archived virtual machine for repurposing to the user; means for repurposing the selected virtual machine for the user by loading repurposing data to the selected virtual machine, including switching permissions or ownership of the repurposed machine from a previous user of the repurposed virtual machine to the user associated with the request.
 16. The system of claim 15, wherein selecting an existing virtual machine for repurposing to the user associated with the request includes selecting an existing virtual machine based on a time period that the existing virtual machine has been idle.
 17. The system of claim 15, wherein selecting an existing virtual machine for repurposing to the user associated with the request includes selecting an existing virtual machine based on a relative similarity between the existing virtual machine and the requested virtual machine.
 18. The system of claim 15, further comprising: means for customizing the repurposed virtual machine for the user based at least in part on credentials associated with the user.
 19. The system of claim 15, wherein loading repurposing data to the selected virtual machine includes: means for deleting data corresponding to the repurposing data, wherein the data corresponding to the repurposing data is presently associated with the selected virtual machine, and means for merging the repurposing data with the selected virtual machine.
 20. The system of claim 15, wherein the repurposing data includes a copy of a database in a data storage management system that stores metadata, media management, policies, reporting, and licensing information for the selected virtual machine. 